-- GENERATED SPELL FOR [Rift Spawn] --


function spell0_6492(pUnit, Event) --@Create Filled Containment Coffer,n/a--
pUnit:FullCastSpellOnTarget(9010,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6492', 2000, 1)
end

function Sorts_6492(pUnit, Event)
local choix_sorts_6492 = math.random(0, 0)
if choix_sorts_6492 == 0 then
pUnit:RegisterEvent('spell0_6492', 1, 1)
end
end

function mob6492_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6492', math.random(1500, 3000), 1)
end

function mob6492_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6492_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6492_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6492, 1, 'mob6492_Action')
RegisterUnitEvent(6492, 2, 'mob6492_Leave')
RegisterUnitEvent(6492, 3, 'mob6492_Kill')
RegisterUnitEvent(6492, 4, 'mob6492_Die')
